#include "AST_Builder.h"
#include <iostream>

void AST_Builder::listAllStmts() {
	int n = _ast->numStmts();
	cout << "Listing all statements:\n ";
	for (int i=0; i<n; i++ ) {
		cout << _ast->StmtAt(i)->getStmtIndex() << ":"  << _ast->StmtAt (i)->getStmtType() << " ";
	}
	cout << endl;
};